{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=1476
  Verdict: Accepted
}
var a,b:longint;
begin
Assign(input,'input.txt');
Assign(output,'output.txt');
reset(input);
rewrite(output);
readln(a);
b:=a*120;
write('It is ',b div 3600,' hours ',(b mod 3600) div 60,' minutes.');
end.